<template>
	<div class="app">
		<h2>{{msg}}</h2>
		<br>
		<br>
		<School :xiaoxi="msg" :money="money" :car="car"/>
	</div>
</template>

<script>
	//引入School组件
	import School from './components/School'

	export default {
		name:'App',
		components:{School},
		data(){
			return {
				msg:'欢迎学习Vue',
				money:90000,
				car:{name:'奔驰',price:100000}
			}
		}
	}
</script>

<style>
	.app{
		background-color: gray;
		padding: 10px;
	}
</style>